package com.guomei.service.pay;

import com.alipay.api.AlipayApiException;
import com.guomei.bean.PayRequest;
import com.guomei.utils.Result;

import java.io.IOException;
import java.util.Map;

public interface PaymentService {
    /**
     * 创建支付
     */
    Result<?> createPayment(PayRequest request) throws AlipayApiException, IOException;

    /**
     * 处理支付结果通知
     */
    boolean handlePaymentNotify(String notifyData);

    /**
     * 查询支付状态
     */
    Result<?> queryPayment(String outTradeNo);

}
